package com.example.SpringBoot_demo.mapper;

import com.example.SpringBoot_demo.bean.BorrowHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BorrowMapper {

    int countNumb();
    List<BorrowHistory> myBorrowHistory(@Param("userid")String userid,@Param("flag")String flag);
    void insertBorrowHistory(@Param("historyid") String historyid,
                             @Param("userid") String userid,@Param("username") String username,
                             @Param("bookid") String bookid,@Param("bookname") String bookname,
                             @Param("author") String author,@Param("state") String state);
    void returnbook(@Param("bookid")String bookid,@Param("userid")String userid,@Param("state")String state);
}
